package cn.wolfcode.crm.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
public class ClientPlanQuery extends QueryObject {

    //创建日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date  beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date  endDate;

    //模糊搜索
    private String keyword; //客户姓名/录单员

    public String getKeyword() {
        return empty2Null(keyword);
    }
}
